package com.ny.entity;

import lombok.Data;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;
import java.util.Date;

@Data
@Document(collection = "user") // 绑定user集合
public class User {
    @Field("user_id")
    private Integer userId;
    
    @Field("username")
    private String username;
    
    @Field("password")
    private String password;
    
    @Field("nickname")
    private String nickname;
    
    @Field("phone")
    private String phone;
    
    @Field("email")
    private String email;
    
    @Field("is_active")
    private Boolean isActive;
    
    @Field("created_time")
    private Date createdTime;

}